package com.xiaoyu.lanling.event.user

import `in`.srain.cube.request.JsonData
import com.xiaoyu.base.event.BaseJsonEvent
import com.xiaoyu.lanling.feature.user.model.UserExtra

class UserSettingEvent(requestTag: Any, jsonData: JsonData) : BaseJsonEvent(requestTag, jsonData) {

    val cupidAndAccostSwitch = jsonData.optBoolean("cupidAndAccostSwitch")

    init {
        UserExtra.instance.updateSetting(cupidAndAccostSwitch)
    }
}